﻿@model BuildContext
@{
    var project = Model.Project;
    var buildTask = Model.Build;
    var schema = Model.GetCurrentSchema();
    var table = Model.GetCurrentTable();
    var entity = Model.GetEntityContext().FindEntity(schema, table);
}
@if (entity.IsTreeEntity())
{
    await Html.RenderPartialAsync("Crud/Tree/TreeService.cshtml", Model);
}
else
{
    await Html.RenderPartialAsync("Crud/CrudService.cshtml", Model);
}